<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<button id="test1">欢迎学习Layer</button>
		
		<script src="js/jquery-2.1.4.js" type="text/javascript" charset="utf-8"></script>
		<script src="layer/layer.js" type="text/javascript" charset="utf-8"></script>
		
		<script type="text/javascript">
			$('#test1').click(function() {
				layer.open({
					type: 1,
					area: ['500px', '300px'],
					content: $('#divId')
				});
				
			})
		</script>
		
		
	</body>
	<div id="divId" style="display: none;">
		姓名：<input type="text" />
	</div>
	
</html>
